<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	if (session.getAttribute("usersTemp") != null) {
		response.sendRedirect("/st/pages/main.zul");
		return;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="include/img/favicon.ico" rel="shortcut icon"
	type="image/x-icon" />
<title>Login Form</title>
<link rel="stylesheet" href="include/css/style-login.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
	<section class="container"> <c:if
		test="${not empty param.login_error}">
		<div class="errorblock">
			Your login attempt was not successful, try again.<br /> <br />
			Reason: ${SPRING_SECURITY_LAST_EXCEPTION.message}
		</div>
	</c:if>
	
	<div class="login-help">
		<jsp:include page="popup_register.zul" />
	</div>
	
	<div class="login">
		<h1>Login to Sistem Informasi Template</h1>
		<form id="f" name="f" method="post" action="j_spring_security_check">
			<p>
				<input id="u" type="text" name="j_username" placeholder="Email">
			</p>
			<p>
				<input id="p" type="password" name="j_password"
					placeholder="Password">
			</p>
			<p class="remember_me">
				<label> <input type="checkbox"
					name="_spring_security_remember_me" id="remember_me">
					Remember me on this computer
				</label>
			</p>
			<p class="submit">
				<input type="submit" name="commit" value="Login">
			</p>
		</form>
	</div>

	<div class="login-help">
		<jsp:include page="popup_reset.zul" />
	</div>

	</section>
</body>
</html>